package com.lhj.myapplication.controller;

import com.lhj.myapplication.service.TagService;
import com.lhj.myapplication.vo.TagViewModel;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class TagController {
    @Autowired
    private TagService tagService;
    @GetMapping("/tags")
    @ApiOperation("获取标签")
    public List<TagViewModel> getAll(){
        return tagService.getAll();
    }
}
